const s = new Set(["val1", "val2", "val3"]);
for (let pair of s.entries()) {
    console.log(pair);
}
for (let pair of s.keys()) {
    console.log(pair);
}
for (let pair of s.values()) {
    console.log(pair);
}
// ["val1", "val1"]
// ["val2", "val2"]
// ["val3", "val3"]

const m = new Map([
    ["key1", "val1"],
    ["key2", "val2"],
    ["key3", "val3"]
]);
for (let pair of m.entries()) {
    console.log(pair);
}
for (let pair of m.keys()) {
    console.log(pair);
}
for (let pair of m.values()) {
    console.log(pair);
}
